﻿using L.EntityFramework;
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace L.EntityModel
{
    [Table("organization_enterprise")]
    public class Organization_Enterprise : BaseEntity
    {
        [Key]
        public int ID { get; set; }

        public string Code { get; set; }

        public string EnterpriseName { get; set; }

        public int? OrganizationForm { get; set; }

        public int? OrganizationId { get; set; }

        /// <summary>
        /// 上级机构
        /// </summary>
        public int? SuperiorsOrganization { get; set; }

        public int? ProvinceId { get; set; }

        public int? City { get; set; }

        public int? Region { get; set; }

        public string Address { get; set; }

        public DateTime? StartTime { get; set; }

        public DateTime? EndTime { get; set; }

        public string PersonCharge { get; set; }

        public string PersonMobile { get; set; }

        public string LandlinePhone { get; set; }

        public int? JurisdictionRegion { get; set; }

        public string Img { get; set; }

        public string Remark { get; set; }

        public int? ViewDel { get; set; }

        public int? ViewFlag { get; set; }

        public int? ChangeLoginID { get; set; }

        public string ChangeLoginName { get; set; }

        public DateTime? ChangeDate { get; set; }

        public DateTime? CreateDate { get; set; }

        /// <summary>
        /// 总部ID
        /// </summary>
        public int? HeadId { get; set; }

        public string ClassifyId { get; set; }

        public string ServiceVersion { get; set; }

        [NotMapped]
        public double AdminLoginName { get; set; }

        [NotMapped]
        public string LoginName { get; set; }

        [NotMapped]
        public string Pwd { get; set; }

        [NotMapped]
        public string PhoneNumber { get; set; }

        [NotMapped]
        public int OldId { get; set; }
    }
}